#include "Acceptor.h"
#include "TcpConnection.h"
#include <iostream>
using std::endl;
using std::cout;
int main(int argc, char *argv[])
{
    Acceptor acceptor(8080);
    acceptor.ready();
    TcpConnection conn(acceptor.accept());
    cout << conn.toString() << "has connected" << endl;
    conn.send("hello");
    cout <<  conn.recv() << endl;

    return 0;
}

